﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GosWeb.Biz
{
    public class Utilities
    {
        public static string GetSortSummary(string longSummary, int shortTo)
        {
                      
               string des;
               if (longSummary == null || longSummary.Length < shortTo)
               {
                   des = longSummary;
               }
               else
               {
                   des = longSummary.Substring(0, shortTo -3);
                   des += "...";
               }
               return des;
        }
    }
}